import { Injectable } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
import { Prisma, course_type } from '@prisma/client';
@Injectable()
export class CourseTypeService {
    constructor(private readonly prisma: PrismaService) {}
    getType(){
        return this.prisma.course_type.findMany(
            {
                orderBy:{
                    order: 'asc'
                }
            }
        );
    }
}
